<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>首页-图表汇总</title>
    <!-- 引入 echarts.js -->
    <script src="http://cdn.bootcss.com/jquery/3.1.1/jquery.js"></script>
    <script src="http://cdn.bootcss.com/echarts/3.2.3/echarts.js"></script>
    <style>
        body{margin:0}
        div{float:left;margin:0 auto;padding-left: 15px;padding-top: 15px}
        button{width: 80px;height: 30px;margin: 20px}
    </style>
</head>
<body>
    <!-- 为ECharts准备一个具备大小（宽高）的Dom -->
    <div id="openChart"></div>
    <div id="closeChart"></div>

    <center>
        <button>更新</button>
    </center>

    <script>
        var width = $(window).width() * 0.95;
        if (/Android|iPhone/.test(window.navigator.userAgent)) {
            $('div').width(width).height(width * 0.75);//618
        } else {
            $('div').width(width / 2).height(width * 0.375);//309
        }
    </script>
</body>

<script src="js/analyzeJson.js"></script>
<script src="js/buttonClick.js"></script>

</html>